package com.diandiansong.app.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

import diandiansong.library.utils.BaseEntity;

public class AddressInfo extends BaseEntity {

    /**
     * message : null
     * data : [{"id":"8","names":"这么好了","mobile":"18238833662","area":"浙江省杭州市上城区","addr":"这么晚的","is_default":"1","province":"浙江省","citys":"杭州市",
     * "county":"上城区","province_id":"1","citys_id":"2","county_id":"3"},{"id":"7","names":"黄老板","mobile":"13245678912","area":"浙江省杭州市上城区",
     * "addr":"是因为自己喜欢自己所以","is_default":"0","province":"浙江省","citys":"杭州市","county":"上城区","province_id":"1","citys_id":"2","county_id":"3"},
     * {"id":"6","names":"刘小珍","mobile":"13657849083","area":"浙江省杭州市上城区","addr":"凤起东路89号","is_default":"0","province":"浙江省","citys":"杭州市",
     * "county":"上城区","province_id":"1","citys_id":"2","county_id":"3"},{"id":"5","names":"黄小小3","mobile":"13112312311","area":"浙江省杭州市上城区",
     * "addr":"文一路19号","is_default":"0","province":"浙江省","citys":"杭州市","county":"上城区","province_id":"1","citys_id":"2","county_id":"3"},{"id":"4",
     * "names":"张机","mobile":"13576781234","area":"浙江省杭州市下城区","addr":"文一路19号","is_default":"0","province":"浙江省","citys":"杭州市","county":"下城区",
     * "province_id":"1","citys_id":"2","county_id":"4"},{"id":"3","names":"黄小小3","mobile":"13112312311","area":"浙江省杭州市上城区","addr":"文一路19号",
     * "is_default":"0","province":"浙江省","citys":"杭州市","county":"上城区","province_id":"1","citys_id":"2","county_id":"3"},{"id":"2","names":"黄小小3",
     * "mobile":"13112312311","area":"浙江省杭州市上城区","addr":"文一路19号","is_default":"0","province":"浙江省","citys":"杭州市","county":"上城区","province_id":"1",
     * "citys_id":"2","county_id":"3"},{"id":"1","names":"黄小小","mobile":"13112312312","area":"浙江省杭州市下城区","addr":"文一路19号","is_default":"0",
     * "province":"浙江省","citys":"杭州市","county":"下城区","province_id":"1","citys_id":"2","county_id":"4"}]
     */

    @SerializedName("data")
    private List<Data> data;

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public static class Data {
        /**
         * id : 8
         * names : 这么好了
         * mobile : 18238833662
         * area : 浙江省杭州市上城区
         * addr : 这么晚的
         * is_default : 1
         * province : 浙江省
         * citys : 杭州市
         * county : 上城区
         * province_id : 1
         * citys_id : 2
         * county_id : 3
         */

        @SerializedName("id")
        private String id;
        @SerializedName("names")
        private String names;
        @SerializedName("mobile")
        private String mobile;
        @SerializedName("area")
        private String area;
        @SerializedName("addr")
        private String addr;
        @SerializedName("is_default")
        private String isDefault;
        @SerializedName("province")
        private String province;
        @SerializedName("citys")
        private String citys;
        @SerializedName("county")
        private String county;
        @SerializedName("province_id")
        private String provinceId;
        @SerializedName("citys_id")
        private String citysId;
        @SerializedName("county_id")
        private String countyId;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getNames() {
            return names;
        }

        public void setNames(String names) {
            this.names = names;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getAddr() {
            return addr;
        }

        public void setAddr(String addr) {
            this.addr = addr;
        }

        public boolean getIsDefault() {
            return isDefault != null && isDefault.equals("1");
        }

        public void setIsDefault(String isDefault) {
            this.isDefault = isDefault;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCitys() {
            return citys;
        }

        public void setCitys(String citys) {
            this.citys = citys;
        }

        public String getCounty() {
            return county;
        }

        public void setCounty(String county) {
            this.county = county;
        }

        public String getProvinceId() {
            return provinceId;
        }

        public void setProvinceId(String provinceId) {
            this.provinceId = provinceId;
        }

        public String getCitysId() {
            return citysId;
        }

        public void setCitysId(String citysId) {
            this.citysId = citysId;
        }

        public String getCountyId() {
            return countyId;
        }

        public void setCountyId(String countyId) {
            this.countyId = countyId;
        }
    }
}
